import * as types from './actions-types';

// const makeAction = type => (({ commit }, ...args) => commit(type, ...args));

function makeAction(type) {
  return ({ dispatch }, ...args) => dispatch(type, ...args);
}

export const fetchFeeds1 = makeAction(types.fetchFeeds);
export const fetchFeed2 = makeAction(types.fetchFeed);
